package com.company.user.req;

import com.company.user.entity.DepartmentEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel("通过部门id修改部门信息入参")
public class DepartmentInfoReq {

    @ApiModelProperty("部级id")
    private String departmentId;
    @ApiModelProperty("部级名")
    private String departmentName;
    @ApiModelProperty("部级父id")
    private String departmentFid;
    @ApiModelProperty("排序")
    private Integer sort;
    @ApiModelProperty("状态，0：正常，1：删除，2封禁")
    private Integer departmentStatus;

    public String getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    public String getDepartmentFid() {
        return departmentFid;
    }

    public void setDepartmentFid(String departmentFid) {
        this.departmentFid = departmentFid;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getDepartmentStatus() {
        return departmentStatus;
    }

    public void setDepartmentStatus(Integer departmentStatus) {
        this.departmentStatus = departmentStatus;
    }
    public void copyTo(DepartmentEntity departmentEntity){
        departmentEntity.setDepartmentId(this.departmentId);
        departmentEntity.setDepartmentStatus(this.departmentStatus);
        departmentEntity.setDepartmentFid(this.departmentFid);
        departmentEntity.setDepartmentName(this.getDepartmentName());
        departmentEntity.setSort(this.sort);
    }
}
